home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 098 / dosenvir.doc < prev    next >
Text File  |  1985-06-03  |  1KB  |  23 lines

  1.     20-Dec-83  21:39:26
  2. Fm: Jeff Garbers 73105,330
  3. To: all
  4.  
  5. Hi-- while browsing through the MS-DOS manual for our new Tandy 2000 (yes,
  6. we'll get Crosstalk going on it soon), we noticed a very handy feature in batch
  7. processing-- and I'll be darned, but it works on the PC!  You can refer to
  8. variables which have been SET in your environment simply by placing the
  9. variable name in between percent signs.  For example, if your batch file
  10. DOIT.BAT has
  11.  
  12. masm %workfile%;
  13. and you did a SET WORKFILE=BONZO.ASM, the batch file expands to "masm
  14. BONZO.ASM;".  Extremely handy, especially considering that applications can
  15. change the values of environment variables.  I was complaining that MS-DOS
  16. couldn't do that sort of thing from the start-- seemed too natural-- and now we
  17. find it was in there all along.
  18.  
  19. As with any other undocumented feature, there may very well be bugs in this.
  20. We only tried it long enough to see that it worked for this simple example.
  21. Try it out and let's see if there are any problems that need to be worried
  22. about. /// JPG
  23.